import 'element-plus/dist/index.css'
// 自定义的主题
import '@/styles/common.scss'
import ElementPlus from 'element-plus'
import { createApp } from 'vue'
import App from './App.vue'
import router from "@/router";
import { createPinia } from "pinia";
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import { lazyPlugin } from '@/directives'
import { componentPlugin } from "@/components";

const pinia = createPinia()
//注册持久化插件
pinia.use(piniaPluginPersistedstate)
const app = createApp(App)
app.use(pinia).use(componentPlugin).use(lazyPlugin).use(router).use(ElementPlus).mount('#app')
